package com.github.pig.sales.service.impl;

import com.github.pig.sales.entity.SalesFollowUpTeam;
import com.github.pig.sales.mapper.SalesFollowUpTeamMapper;
import com.github.pig.sales.service.ISalesFollowUpTeamService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 跟进团队 服务实现类
 * </p>
 *
 * @author andrew
 * @since 2018-06-16
 */
@Service
public class SalesFollowUpTeamServiceImpl extends ServiceImpl<SalesFollowUpTeamMapper, SalesFollowUpTeam> implements ISalesFollowUpTeamService {

    @Autowired
    private SalesFollowUpTeamMapper mapper;

    @Override
    public boolean selectByUserId(int userId) {
        SalesFollowUpTeam team = mapper.selectByUserId(userId);
        if (team!=null){
            return true;
        }else {
            return false;
        }
    }
}
